﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Umbraco.Framework;
using Umbraco.Framework.Persistence.Model.Attribution.MetaData;
using WebGarden.Hive.Providers.Products.Schema.Model.AttributeGroups;
using WebGarden.Hive.Providers.Products.Schema.Model.AttributeTypes;

namespace WebGarden.Hive.Providers.Products.Schema.Model.AttributeDefinitions
{
	/// <summary>
	/// Definition of the description attribute of my product. Note that the Attribute Group and Attribute Type are set,
	/// defining this attribute as a richtext attribute and adding it to my product details attribute group
	/// </summary>
	public class DescriptionAttributeDefinition : AttributeDefinition
	{
		public const string AliasValue = "description";

		public DescriptionAttributeDefinition()
            : base(AliasValue, "Product Description")
        {
            Id = new HiveId(AliasValue);
            AttributeGroup = new ProductDetailsAttributeGroup();
			AttributeType = new RichTextEditorAttributeType();
        }
	}
}
